package String;

public class StringBuildDemo {
    public static void main(String[] args) {
        StringBuilder builder = new StringBuilder("学习JAVA");
        System.out.println(builder);
        builder.append("，为了找工作");
        System.out.println(builder);
        builder.replace(7,15,"就是为了改变世界");
        System.out.println(builder);
        builder.insert(0,'我');
        System.out.println(builder);
        builder.delete(0,6);
        System.out.println(builder);
//        StringBuilder builder1 = new StringBuilder();
//        StringBuilder builder2 = new StringBuilder("Hello World");
//        String str="hello";
//        String str2=builder1.toString();
//        StringBuilder builder3 = new StringBuilder(str);
    }
}
